﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;


public partial class RedirectOA : System.Web.UI.Page
{
    public int localtime = 0;
    protected void Page_Load(object sender, EventArgs e)
    {
        //string username = Utility.HttpHelp.getParamsString("Username");

        //string password = Utility.HttpHelp.getParamsString("Password");

        //构建本地时间转化秒值，用于对比
        DateTime localdate = DateTime.Now;
        int hour = (localdate.Hour * 3600);
        int mm = (localdate.Minute * 60);
        //拼成目标时间值，并转为double型，用于比对。
        localtime = hour + mm + localdate.Second;
        //string time = localtime.ToString();
        //ClientScript.RegisterClientScriptBlock(this.GetType(), "", "<script>var user = document.getElementByName('Username');var pass =document.getElementByName('password'); var time = document.getElementByName('loginTime'); user.value='" + username + "'; pass.value ='" + password + "'; time.value ='" + time + "';</script>");
    }
}
